[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
STORE VALUE variable is stored the default value if it's value <> NIL:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Syntax:
~~~~~~~

  STORE VALUE <Value1> INTO <Var1> [, <ValueN> INTO <VarN> ]

Description:
~~~~~~~~~~~~~
If the expresion <Value1> <> NIL, then the variable <Var1> is assigned the
<Value1>. This is performed for all variables and their values.

Example:
~~~~~~~~

  STORE VALUE xxx INTO A, yyy INTO B, zzz INTO C

can be rewritten:

  IF xxx==NIL
    A:=xxx
  END
  IF yyy==NIL
    B:=yyy
  END
  IF zzz==NIL
    C:=zzz
  ENDIF


Source file is Object.ch

See Also: FILL EMPTY DEFAULT
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson